<template>
  <div style="background-color: #F2F2F2;color: #606266;min-height: 100vh;">
    <blue-nav/>
    <el-row>
      <div style="display: flex;justify-content: center;">
        <div class="box-card">
          <div class="box-head">
            <div class="box-box"></div>
            <div>资源管理入口</div>
          </div>
          <div class="box-body">
            <div class="my-system box-border" style="margin-right: 10px;width: 300px"
                 @click="toApp(v.path)" v-for="(v,i) in appList" :key="i">
              <el-card shadow="never" class="body-card">
                <i class="el-icon-setting box-icon"/>
              </el-card>
              <div style="padding:0 20px">
                <div>{{ v.label }}</div>
                <el-button round size="mini" style="margin-top: 20px">简介</el-button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </el-row>
  </div>
</template>

<script>
import blueNav from "@/components/blueNav";
import service from "@/api/service";

export default {
  name: "home",
  components: {
    blueNav
  },
  data() {
    return {
      appList: [
        {path: '/index/user', label: '统一资源管理系统'},
        {path: '/flow/bpmnModel', label: '工作流'},
        {path: '/os/minio', label: '静态存储'},
      ]
    }
  },
  methods: {
    toApp(v) {
      this.$router.push({path: v})
    },
    toUrl(v) {
      window.location.href = v;
    },
  }
}
</script>

<style scoped lang="less">
.img-nav {
  width: 100vw;
  position: absolute;
  top: 0;
}


.box-card {
  width: 95vw;
  height: 600px;
  //border: #F2F2F2 1px solid;
  border-radius: 10px;
  background-color: white;
}

.box-head {
  background-color: #3878F6;
  border-radius: 10px 10px 0 0;
  height: 80px;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;

  .box-box {
    width: 3px;
    height: 18px;
    background-color: #F5BC56;
    margin: 0 20px;
  }
}

.box-body {
  display: flex;
  flex-wrap: wrap;
  margin: 30px;
}

.box-icon {
  font-size: 30px;
  color: white;
}

.body-card {
  background-color: #3979F6;

  &:hover {
    background-color: #EA816A;
  }
}

.my-system {
  display: flex;
  align-items: center;
  padding: 4px;
}

.box-border {
  border-radius: 4px;
  border: #DCDFE6 1px solid;
}
</style>